import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false;

//配置全局样式
import '@/assets/css/global.css'

//配置全局自定义设置
import settings from '@/assets/js/settings'
Vue.prototype.$settings = settings;
//在所有需要与后台交互的组件中: this.$settings_base_url + '再拼接具体后台路由'


//配置axios
import axios from 'axios'
Vue.prototype.$axios = axios;

//配置cookies
import cookies from 'vue-cookies'
Vue.prototype.$cookies = cookies;

//配置element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//配置bootstrap+jq
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'

import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'sUsFAMlRXCt240eC5Uhw1ToI69AjPa7T'
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
